﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Configuration;
using System.Configuration;
namespace Utils
{
    public static class ConfigUtils
    {
        public static string GetSingleWebConfigSetting(string key)
        {
            var configuration = WebConfigurationManager.OpenWebConfiguration("~");
            var section = (AppSettingsSection)configuration.GetSection("appSettings");
            return section.Settings[key].Value;
        }
    }
}
